package com.myblog.mapper;

import com.myblog.pojo.Tag;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface Tagmapper {
    @Select("SELECT * FROM tag")
    @Results(value = {
            @Result(property = "id",column = "id"),
            @Result(property = "tName",column = "t_name")
    })
    public List<Tag> findtag();
}
